import { findTypeByValue, findTypeByLabel } from '@/utils/findType'
import * as types from "./types"

// 渠道Table
export const configTableFrame = [
  { 
    prop: "num", 
    label: "序号", 
    minWidth: "50px", 
    tooltip: true 
  },
  {
    prop: "content",
    label: "内容",
    minWidth: "100px",
    tooltip: true
  },
  {
    prop: "originalText",
    label: "指南原文",
    minWidth: "100px",
    tooltip: true
  },
  {
    prop: "modelVo",
    label: "指南信息",
    minWidth: "100px",
    formatter: (row) => {
      return row.modelVo.name
    }
  },
  {
    prop: "caseVo",
    label: "案例信息",
    minWidth: "100px",
    formatter: (row) => {
      return row.caseVo.name
    }
  },
  { 
    label: "操作", 
    slotName: "operate", 
    fixed: "right",
    minWidth: "100px"
  },
];


export const searchFrame = [
  { 
    label: "案例Id", 
    key: "caseId", 
    type: 1
  },
  { 
    label: "指南Id", 
    key: "model", 
    type: 1
  }
]
